
#pragma once

#include "Input.h"

#define MAX_KEYSTATE (256)

#include "DirectInputDevice.h"

class CDIKeyboard:public CDirectInputDevice
{
public:
	
	CDIKeyboard();
	~CDIKeyboard();
	
	virtual bool Init( HWND hWnd );
	virtual bool Update();

	bool IsKeyPressed( DWORD dik );
	bool IsKeyDown( DWORD dik );
	bool IsKeyUp( DWORD dik );

	UINT ReadCharInput( unsigned short* pBuff, BOOL*pKeystate, UINT nWords );

	BYTE m_State[ MAX_KEYSTATE ];
	BYTE m_StateLast[ MAX_KEYSTATE ];

};